﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/CompanyCenter.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>


<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%:SiteResource.Title() %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">    
    <link rel="Stylesheet" type="text/css" href="/Content/css/usercenter.css" />
    <link rel="Stylesheet" type="text/css" href="/Content/css/popupbox.css" />
    <style type="text/css">
        .validation-label-error
        {
            color: Red;
            margin-left: 10px;
        }
        .validation-element-error
        {
            background-color: #fdd;
        }
    </style>
    <script type="text/javascript" src="/Scripts/jquery-1.4.1.min.js"></script>
    <script type="text/javascript" src="/Scripts/formValidator.js" charset="GB2312"></script>
    <script type="text/javascript" src="/Scripts/library.js" charset="GB2312"></script>
    <script type="text/javascript" src="/Scripts/plug.js" charset="GB2312"></script>
    
    <script type="text/javascript" src="/Scripts/DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="/Scripts/xheditor/ConfigXheditor.js"></script>
    <script type="text/javascript" src="/Scripts/xheditor/xheditor-zh-cn.js"></script>
    <script type="text/javascript">
        var control = new plug.Control();
        var lib = new library.Recruiting();
        var popFrame = new plug.PopFrame();
        lib.InitPage('<%:ViewData["RecruitingStr"] %>', '<%:ViewData["EmployerStr"] %>');
        $(function () {
            (new plug.HighLightControl()).ResistHighLight();
            control.BuildSelect('sltWorkArea', 'WorkArea');
            control.BuildSelect('sltPositionType0', 'PositionType');
            control.BuildSelect('sltDegree0', 'Degree');
            control.BuildSelect('sltPeriod0', 'Period');
            control.BuildSelect('sltCompanyBusiness', 'Business');
            control.BuildSelect('sltCompanyType', 'CompanyType');
            control.BuildSelect('sltCompanyDimensions', 'CompanyDimensions');
            $("#txtDescription").xheditor(editorConfig);
            $('#txtCompanyDetail').xheditor(editorConfig);
            lib.BindValidate();
            lib.BuildTempleteList('recruitingTempBox', 'companyTempBox');
            lib.RecoveryFromOriginal('<%=ViewData["Original"] %>');
        });
        function OpenTempleteLayer() {
            popFrame.OpenFrame('recruitingTemp', 'btncolsetemp');
        }
        function OpenTempleteDescLayer() {
            popFrame.OpenFrame('recruitingdesc', 'btncolsedesc');
        }
        function OpenCompanyTempLayer() {
            popFrame.OpenFrame('companyTemp', 'btncolsecompanyTemp');
        }
        function OpenCompanyDescLayer() {
            popFrame.OpenFrame('companyDesc', 'btncolsecopdesc');
        }
        function AddNote(sender) {
            $(sender).hide().siblings('div').show();
        }
        function OpenPositionTip(id, error) {
            $('#' + id).append(error).fadeIn(600);
        }
        function NewPosition(sender) {
            lib.NewPosition(sender);
        }
        function DeletePosition(sender, index) {
            lib.DeletePosition(sender, index);
        }
        function GoPage(sender, page, slt) {
            lib.ChangeTempletePage(sender, page, slt, 'recruitingTempBox', 'companyTempBox');
        }
        function Recovery(sender, id, slt) {
            lib.RecoveryFromTemplete(sender, id, slt);
        }
        function choosereceive(sender) {
            if ($(sender).attr('checked')) {
                $('#rcebox').show();
                $("input[name='ReceiveEmail']").formValidator({ tipID: 'txtReceiveEmailTip', onShow: ' ', onFocus: ' ', onError: "请输入用于接收求职者简历的邮箱地址" }).regexValidator({ regExp: "^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]+$", onError: "您的输入有误" }); ;
            }
            else {
                $('#rcebox').hide();
                $('#txtReceiveEmail').unloadValidator();
            }
        }
        function ToggleMapSet(b) {
            if (b == 1) {
                $('#mapcontrol').show();
                $('#mapcontainer').show();
            }
            else {
                $('#mapcontainer').hide();
                $('#res').html('');
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
    <div class="usercenter-main">
        <div class="usercenter-main-topbg">
        </div>
         <div id="recruitingTemp" class="popbox-box" style="width: 400px; height: auto">
            <div class="popbox-title">
                <div class="popbox-right">
                    <a href="javascript:;" id="btncolsetemp">
                        <img src="/Content/Images/closelabel.gif" /></a></div>
            </div>
            <div class="popbox-content">
                <div style="display: none; height: 350px; overflow: hidden" class="loadData">
                </div>
                <div id="recruitingTempBox">
                </div>
            </div>
        </div>
        <div id="recruitingdesc" class="popbox-box" style="width: 400px; height: auto">
            <div class="popbox-title">
                <div class="popbox-right">
                    <a href="javascript:;" id="btncolsedesc">
                        <img src="/Content/Images/closelabel.gif" /></a></div>
            </div>
            <div class="popbox-content">
                <div class="popbox-itemtitle">
                    什么是模板？</div>
                <div class="popbox-item">
                    模板作为发布兼职信息的一个参考，保存模板后可在下次发布兼职时直接导入模板，可减少部分信息输入量。</div>
                <div class="popbox-itemtitle">
                    如何创建模板？</div>
                <div class="popbox-item">
                    可在您提交兼职前，勾选“以此创建模板”，系统就将自动将此次输入的兼职信息作为模板保存。</div>
                <div class="popbox-itemtitle">
                    如何使用模板创建？</div>
                <div class="popbox-item">
                    点击“使用模板创建”，在弹出框中选择合适的模板即可。</div>
            </div>
        </div>
        <div id="companyTemp" class="popbox-box" style="width: 400px; height: auto">
            <div class="popbox-title">
                <div class="popbox-right">
                    <a href="javascript:;" id="btncolsecompanyTemp">
                        <img src="/Content/Images/closelabel.gif" /></a></div>
            </div>
            <div class="popbox-content">
                <div style="display: none;" class="loadData">
                </div>
                <div id="companyTempBox">
                </div>
            </div>
        </div>
        <div id="companyDesc" class="popbox-box" style="width: 400px; height: auto">
            <div class="popbox-title">
                <div class="popbox-right">
                    <a href="javascript:;" id="btncolsecopdesc">
                        <img src="/Content/Images/closelabel.gif" /></a></div>
            </div>
            <div class="popbox-content">
                勾选“保存企业”后，系统将会自动将招聘企业信息保存到您的企业库，以便下次直接使用！
            </div>
        </div>
        <div id="aboutemailnotify" class="popbox-box" style="width: 400px; height: auto">
            <div class="popbox-title">
                <div class="popbox-right">
                    <a href="javascript:;" id="btncloseabout">
                        <img src="/Content/Images/closelabel.gif" /></a></div>
            </div>
            <div class="popbox-content">
                <div class="popbox-itemtitle">
                    什么是邮件通知？</div>
                <div class="popbox-item">
                    启用邮件通知功能后，当有求职者给您所发布的兼职投递简历时，系统将会把求职者简历通过邮件方式发送到您的邮箱中，以便您及时了解和联系求职者。</div>
            </div>
        </div>
        <form id="form1" action="/CompanyCenter/EditRecruiting" method="post">
        <input type="hidden" name="Position" value="1" />
        <input type="hidden" name="Original" value="<%:Request.QueryString["id"] %>" />
        <div class="usercenter-main-content">
            <div class="usercenter-main-content-title">
                <div class="usercenter-main-content-title-left">
                    发布新兼职信息</div>
            </div>
            <div class="usercenter-notes">
                大学生兼职网提供免费兼职发布平台，请发布真实的兼职信息！若发现商家发布虚假兼职，我们将严厉处理！</div>
            <div class="usercenter-main-content">
                <div class="usercenter-title">
                    <div class="left">
                        兼职描述</div>
                    <div class="right">
                        <div class="left">
                            <input type="checkbox" name="CreateTempelte" id="ckbCT" /><label for="ckbCT">以此创建模板</label>
                        </div>
                        <div class="left" style="margin-left: 10px;">
                            <a href="javascript:;" title="选择历史兼职作为模板" onclick="OpenTempleteLayer()">使用模板创建</a></div>
                        <div class="left" style="padding-top: 5px; padding-left: 4px">
                            <a href="javascript:;" onclick="OpenTempleteDescLayer()">
                                <img src="/Content/Images/support2.png" /></a></div>
                    </div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                        兼职标题：</div>
                    <div class="textboxs-box">
                        <input type="text" class="textboxs-ipt2 highlightborder #ffc15c" name="Caption" id="txtCaption" />
                    </div>
                    <div class="textboxs-message" id="txtCaptionTip">
                    </div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                        邮件通知：
                    </div>
                    <div class="textboxs-box">
                        <div class="left">
                            <input type="checkbox" name="EnableEmail" id="ckbEnableEmail" onclick="choosereceive(this)" /><label for="ckbEnableEmail">启用</label></div>
                        <div class="left" style="padding-top: 1px; padding-left: 5px">
                            <a href="javascript:;" onclick="OpenAboutEmailNotify()">
                                <img src="/Content/Images/support2.png" /></a>
                            </div>
                    </div>
                </div>
                <div class="textboxs" id="rcebox" style="display:none;">
                    <div class="textboxs-label">
                        接收邮箱：</div>
                    <div class="textboxs-box">
                        <input type="text" name="ReceiveEmail" class="textboxs-ipt highlightborder #ffc15c"
                            id="txtReceiveEmail" /></div>
                    <div class="textboxs-message" id="txtReceiveEmailTip">
                    </div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                        兼职类型：
                    </div>
                    <div class="textboxs-box">
                        <input type="checkbox" name="Priority" id="ckbPriority" /><label for="ckbPriority">加急</label>
                        <input type="checkbox" name="RecruitType" id="ckbRecruitType" /><label
                            for="ckbRecruitType">长期招聘</label>
                    </div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                        联系人：</div>
                    <div class="textboxs-box">
                        <input type="text" class="textboxs-ipt highlightborder #ffc15c" name="ContactMan"
                            id="txtContactMan" /></div>
                    <div class="textboxs-message" id="txtContactManTip">
                    </div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                        联系电话：</div>
                    <div class="textboxs-box">
                        <input type="text" class="textboxs-ipt highlightborder #ffc15c" name="ContactPhone"
                            id="txtContactPhone" /></div>
                    <div class="textboxs-message" id="txtContactPhoneTip">
                    </div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                        联系QQ：</div>
                    <div class="textboxs-box">
                        <input type="text" class="textboxs-ipt highlightborder #ffc15c" name="QQ" 
                            id="txtQQ" /></div>
                    <div class="textboxs-message" id="txtQQTip">
                    </div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                        兼职区域：</div>
                    <div class="textboxs-box">
                        <select name="WorkArea" id="sltWorkArea" class="textboxs-select">
                        </select></div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                        详细地址：</div>
                    <div class="textboxs-box">
                        <input type="text" class="textboxs-ipt2 highlightborder #ffc15c" name="WorkAddress"
                            id="txtWorkAddress" /></div>
                    <div class="textboxs-message" id="txtWorkAddressTip">
                    </div>
                </div>
                <div class="hspace">
                </div>
                <div class="usercenter-title">
                    职位描述
                </div>
                <div id="positionbox">
                    <div class="positionitem">
                        <div class="positionitem-line">
                            <div class="left">
                                职位名称：<input class="highlightborder #ffc15c" type="text" name="PositionName0" style="width: 300px"
                                    id="txtPositionName0" /></div>
                            <div class="left" style="padding-left: 2px;">
                                <div class="textboxs-message1" id="txtPositionName0Tip">
                                </div>
                            </div>
                            <div class="left" style="padding-left: 4px;">
                                招聘人数：<input class="highlightborder #ffc15c" type="text" style="width: 42px" name="Vacancy0"
                                    id="txtVacancy0" value="0" />&nbsp;'0'表示若干</div>
                            <div class="left" style="padding-left: 2px;">
                                <span class="textboxs-message1" id="txtVacancy0Tip"></span>
                            </div>
                        </div>
                        <div class="positionitem-line">
                            职位类型：<select name="PositionType0" id="sltPositionType0"></select>&nbsp;&nbsp; 薪酬范围：<input
                                type="text" style="width: 40px" name="MinSalary0" />&nbsp;--&nbsp;<input type="text"
                                    style="width: 40px" name="MaxSalary0" />&nbsp;（不填或错填表示面议） 结算周期：<select name="Period0"
                                        id="sltPeriod0"></select>
                        </div>
                        <div class="positionitem-line">
                            性别要求：<select name="Gender0">
                                <option value="-1" selected="selected">不限</option>
                                <option value="1">男生</option>
                                <option value="0">女生</option>
                            </select>&nbsp;&nbsp; 学历要求：<select name="Degree0" id="sltDegree0"></select>
                            <input type="checkbox" name="Experienced0" id="ckbExperienced0" /><label for="ckbExperienced0">有经验者优先</label>
                        </div>
                        <div class="positionitem-line">
                            <div class="left">
                                职位描述：</div>
                            <div class="left">
                                <textarea style="width: 550px; height: 200px" id="txtPositionDescript0" name="PositionDescript0"></textarea>
                            </div>
                            <div style="overflow: hidden; width: 100%; padding-left: 60px;">
                                <div class="left" style="padding-left: 2px;" id="txtPositionDescript0Tip">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div style="overflow: hidden; padding-left: 20px; padding-top: 10px">
                    <a href="javascript:;" id="btnAddPosition" onclick="NewPosition(this)">+添加职位</a>
                </div>
                <div class="hspace">
                </div>
                <div class="usercenter-title">
                    <div class="left">
                        招聘企业信息</div>
                    <div class="right">
                        <div class="left">
                            <input type="checkbox" name="CreateCompanyTemp" id="ckbCCT" /><label for="ckbCCT">保存企业</label></div>
                        <div class="left" style="margin-left: 10px">
                            <a href="javascript:;" onclick="OpenCompanyTempLayer()">选择招聘企业</a></div>
                        <div class="left" style="padding-top: 5px; padding-left: 4px">
                            <a href="javascript:;" onclick="OpenCompanyDescLayer()">
                                <img src="/Content/Images/support2.png" /></a></div>
                    </div>
                </div>
                <div class="textboxs">
                    <input type="hidden" name="DepositCompanyId" />
                    <div class="textboxs-label">
                        企业名称：</div>
                    <div class="textboxs-box">
                        <input type="text" class="textboxs-ipt2" name="CompanyName" id="txtCompanyName" />
                    </div>
                    <div class="textboxs-message" id="txtCompanyNameTip">
                    </div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                        行业分类：</div>
                    <div class="textboxs-box">
                        <select name="CompanyBusiness" id="sltCompanyBusiness" class="textboxs-select">
                        </select></div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                        企业类型：</div>
                    <div class="textboxs-box">
                        <select name="CompanyType" id="sltCompanyType" class="textboxs-select">
                        </select></div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                        企业规模：</div>
                    <div class="textboxs-box">
                        <select name="CompanyDimensions" id="sltCompanyDimensions" class="textboxs-select">
                        </select></div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                        企业介绍：</div>
                    <div class="textboxs-box">
                        <textarea name="CompanyDetail" id="txtCompanyDetail" style="width: 500px; height: 200px;"></textarea>
                    </div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                    </div>
                    <div class="textboxs-box">
                        <input id="btnSubmit" type="image" src="/content/images/usercenter-submit.png" />
                    </div>
                </div>
            </div>
        </div>
        </form>
        <div class="usercenter-main-bottombg">
        </div>
    </div>
</asp:Content>